function serializeToJson(form){
    var result = {};
    // 获取表单中用户输入的内容
    // [{name:"email", value: ""},{name: "password", value: ""}]
    var array = form.serializeArray();
    array.forEach(item => {
        console.log()
        result[item.name] = item.value;
    });
    return result;
}